/**
 * Created by Administrator on 2017/11/21.
 * @description 弹性适配方案，适配1080*1920分辨率的720冰箱tablet
 * @description 这里设置的SCREEN做适配可以采取获取设备提供的屏幕尺寸
 */
let meta = weex.requireModule('meta');
const SCREEN = {
    width: "1080",
    height: "1920"
};

/**初始化屏幕分辨率*/
+function() {
    try {
        meta.setViewport({
            width: SCREEN.width
        });
    } catch (e) {
        console.error('初始化屏幕分辨率失败: ' + e);
    }
}();